package user;

import Function.Borrow;
import Function.Bring;
import Function.Exit;
import Function.Find;

import java.util.Scanner;
import Function.*;
public class NomalUser extends User {

    public NomalUser(String name){
        super(name);
        this.all=new All[]{new Find(),new Borrow(),new Bring(),new Exit()};//接口类型数组将个钟操作装起来，并建立类与类之间的联系
    }
    public int meau(){
        System.out.println("欢迎"+this.name+"来到图书系统");
        System.out.println("*************普通用户************");
            System.out.println("1.查找图书");
            System.out.println("2.借阅图书");
            System.out.println("3.归还图书");
            System.out.println("4.退出系统");
            System.out.println("=======================");
            System.out.println("请输入你的操作：");
            Scanner in = new Scanner(System.in);
            int b = in.nextInt();
            return b;//返回操作数进行下一步 操作实现

    }
}
